function node_analysis(str, id){
    //alert(id);
    if (str.match("substation_attr")) return "tab_template/station/station_attr.html";
    //一次接线图
    if (str.match("substation_picture")) return "tab_template/station/station_picture.html";
    if (str.match("line_attr")) return "tab_template/line/line_attr.html";
    if (str.match("tower_attr")) return "tab_template/line/tower/tower_attr.html";
    //GIS分析
    if (str.match("dirt_analysis")) return "tab_template/gis_analysis/special_area/dirt_analysis.html";
    if (str.match("area_1")) return "tab_template/gis_analysis/special_area/dirt_area.html";
    if (str.match("area_2")) return "tab_template/gis_analysis/special_area/bird_area.html";
    if (str.match("area_3")) return "tab_template/gis_analysis/special_area/goaf_area.html";
	if (str.match("area_4")) return "tab_template/gis_analysis/special_area/wind_area.html";
    if (str.match("area_5")) return "tab_template/gis_analysis/special_area/flood_area.html";
    //滑坡沦陷
    if (str.match("area_6")) return "tab_template/gis_analysis/special_area/coast_area.html";
    //雷害区area_7
    if (str.match("area_7")) return "tab_template/gis_analysis/special_area/thunder_area.html";
	if (str.match("area_8")) return "tab_template/gis_analysis/special_area/force_area.html";
    if (str.match("area_9")) return "tab_template/gis_analysis/special_area/ice_area.html";
    //雷电分析
    if (str.match("area_info_41")) return "tab_template/gis_analysis/thunder_area/thunder_area.html";
    if (str.match("thunder_info")) return "tab_template/gis_analysis/thunder_area/thunder_info.html";
	// 应急体系
	//预警
	if (str.match("mline")) return "/prewarning/?id=" + id;
    return "tab_template/alertsystem/alert/model_line.html";
    //mstation "变电站"
	if (str.match("mstation")) return "tab_template/alertsystem/alert/model_station.html";
	//预警数据检测
	//输电线路
	if (str.match("aline")) return "tab_template/alertsystem/online/online_line_new.html";
	//变电站
	if (str.match("astation")) return "tab_template/alertsystem/online/online_station_new.html";
    if (str.match("error_map")) return "tab_template/alertsystem/late_stage/error_map.html";
    //加载雷电分布图
    if (str.match("area_map_41")) return "tab_template/gis_analysis/thunder_area/thunder_analysis.html";

	//预警分析
	//analysis_result "分析结果"
    if (str.match("analysis_result")) return "tab_template/alertsystem/alert/analysis_result.html";
	if (str.match("error_1")) return "tab_template/alertsystem/direct/all_infor.html";
        //绝缘配置
        if (str.match("insulate_set")) return "tab_template/alertsystem/direct/insulate_set.html";
	//指挥
		//待处理故障
			//error_1 "1#故障"
	
	//善后
	//故障信息, error_info
	if (str.match("error_info")) return "tab_template/alertsystem/late_stage/troubles.html";
	//经验教训, error_exper
	if (str.match("error_exper")) return "tab_template/alertsystem/late_stage/lesson.html";
}
// 变电站 属性               //station_1, station_2,... <-->match("station")
    //500KV
		//1#变电站, station_1
		//2#变电站, station_2
		//3#变电站, station_3
    //220KV
		//4#变电站, station_4
		//5#变电站, station_5
		//6#变电站, station_6
		//7#变电站, station_7
    //110KV
		//8#变电站, station_8
		//9#变电站, station_9
		//10#变电站, station_10
		//11#变电站, station_11

// 输电线路 属性
    //500KV
		//1#线, line_1
			//线路包含杆塔
			//1#杆塔, tower_11
			//2#杆塔, tower_12
			//3#杆塔, tower_13
		//2#线, line_2
			//线路包含杆塔
			//1#杆塔, tower_21
			//2#杆塔, tower_22
			//3#杆塔, tower_23
		//3#线, line_3
			//线路包含杆塔
			//1#杆塔, tower_31
			//2#杆塔, tower_32
			//3#杆塔, tower_33
    //220KV
		//4#线, line_4
			//线路包含杆塔
			//1#杆塔, tower_41
			//2#杆塔, tower_42
			//3#杆塔, tower_43
		//5#线, line_5
			//线路包含杆塔
			//1#杆塔, tower_51
			//2#杆塔, tower_52
			//3#杆塔, tower_53
    //110KV
        //6#线, line_6
            //线路包含杆塔
            //1#杆塔, tower_61
			//2#杆塔, tower_62
			//3#杆塔, tower_63
		//7#线, line_7
			//线路包含杆塔
			//1#杆塔, tower_71
			//2#杆塔, tower_72
			//3#杆塔, tower_73
    //35KV
		//8#线, line_8
			//线路包含杆塔
			//1#杆塔, tower_81
			//2#杆塔, tower_82
			//3#杆塔, tower_83
		//9#线, line_9
			//线路包含杆塔
			//1#杆塔, tower_91
			//2#杆塔, tower_92
			//3#杆塔, tower_93
// GIS分析
    //污区
        //area_1 "污秽区分析"
        //area_2 "鸟害易发区分析"
        //area_3 "采空区分析"
        //area_map_41 "加载雷电区分布图"
        //area_info_41 "雷电区分析"

// 应急体系
	//预警
		//业务模型设置
			//mline 输电线路
				//mline_temperature_set_1 "低温区设置"
				//mline_temperature_set_2 "高温区设置"
				//mline_temperature_set_3 "导线温度上限设置"
				//mline_storm_set "风暴区设置"
				//mline_salt_set "盐密度上限设置"
				//mline_leant_set "杆塔倾斜度上限设置"
            //mstation "变电站"
				//mstation_temperature_set_1 "红外设置"
				//mstation_temperature_set_2 "谐波设置"
		//预警数据检测

			//输电线路 aline
				//aline_temperature_set_1 "低温区设置"
				//aline_temperature_set_2 "高温区设置"
				//aline_temperature_set_3 "导线温度上限设置"
				//aline_storm_set "风暴区设置"
				//aline_salt_set "盐密度上限设置"
				//aline_leant_set "杆塔倾斜度上限设置"
			//变电站 astation

				//astation_temperature_set_1 "低温区设置"
				//astation_temperature_set_2 "高温区设置"
				//astation_temperature_set_3 "导线温度上限设置"
				//astation_storm_set "风暴区设置"
				//astation_salt_set "盐密度上限设置"
				//astation_leant_set "杆塔倾斜度上限设置"

			//输电线路 aline
			//变电站 astation

		//预警分析
			//analysis_result "分析结果"

	//指挥
		//待处理故障
			//error_1 "1#故障"
				//属性" error_1
		//善后
			//故障信息, error_info
			//经验教训, error_exper
			//故障分布图, error_map
function map_analysis(id){
    if (id.match('substation_pos')) return "media/images/maps/station_pos.bmp";
    //line_pos
    if (id.match('line_pos')) return "media/images/maps/line_pos.bmp";
    //tower_pos
    if (id.match('tower_pos')) return "media/images/maps/tower_pos.bmp";
    //GIS
        //area_map_11
        if (id.match('area_map_11')) return "media/images/maps/area_map_11.JPG";
        //area_map_21
        if (id.match('area_map_21')) return "media/images/maps/area_map_21.JPG";
        //area_map_31
        if (id.match('area_map_31')) return "media/images/maps/area_map_31.JPG";
        //area_map_41
        if (id.match('area_map_41')) return "media/images/maps/area_map_41.JPG";
        //area_map_51
        if (id.match('area_map_51')) return "media/images/maps/area_map_51.JPG";
        //area_map_61
        if (id.match('area_map_61')) return "media/images/maps/area_map_61.JPG";
        //area_map_71
        if (id.match('area_map_71')) return "media/images/maps/area_map_71.JPG";
        //area_map_81
        if (id.match('area_map_81')) return "media/images/maps/area_map_81.JPG";
        //area_map_91
        if (id.match('area_map_91')) return "media/images/maps/area_map_91.JPG";
        
    //故障定位error_pos_1
    if (id.match('error_pos_1')) return "media/images/maps/error_pos_1.JPG";
    //error_map
    if (id.match('error_map')) return "media/images/maps/error_map.bmp";
    //在线监测点分布图
    if (id.match('apoint')) return "media/images/maps/apoint.bmp";
	//渲染风格
    if (id.match('layerstyle')) return "media/images/maps/layerstyle.bmp";

	//图层管理
    if (id.match('layercontrol')) return "media/images/maps/layercontrol.JPG";
}
